import React from 'react';
import {Route,} from 'react-router-native';

const RouteWithSubRoutes = (route) => (
  <Route path={route.path} render={
    props => <route.component {...props} routes={route.routes} />
  }  />
)

export default RouteWithSubRoutes;